package mtgGameObjects;

import java.util.ArrayList;
import java.util.List;

public abstract class MtgGameObjectsList<T> implements MtgGenericObject {

	/**
	 * List of MtgGenericObject
	 */
	private List<T> mtgObjectList;

	public MtgGameObjectsList() {
		super();
		this.mtgObjectList = new ArrayList<T>();
	}
	
	public MtgGameObjectsList(List<T> listOfObjects){
		this.mtgObjectList = new ArrayList<T>(listOfObjects);
	}

	public abstract void add(T mObject);
	
	public List<T> getMtgObjectList() {
		return mtgObjectList;
	}

	public void setMtgObjectList(List<T> mtgObjectList) {
		this.mtgObjectList = mtgObjectList;
	}

}
